package edu.ensmp.ckEditor.control;

import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;

import edu.ensmp.ckEditor.gui.EditorFrame;

public class DividerListener implements ComponentListener {

	private EditorFrame _emw;
	
	public DividerListener(EditorFrame emw){
		this._emw = emw;
	}

	public void componentResized(ComponentEvent e) {
		
		_emw.getSplitPane().setDividerLocation(_emw.getEditorFrame().getWidth()/2);
		
	}

	public void componentMoved(ComponentEvent e) {
		// TODO Auto-generated method stub
		
	}

	public void componentShown(ComponentEvent e) {
		// TODO Auto-generated method stub
		
	}

	public void componentHidden(ComponentEvent e) {
		// TODO Auto-generated method stub
		
	}

}
